package com.dianping.cat.consumer.heartbeat.model.transform;

import com.dianping.cat.consumer.heartbeat.model.IVisitor;
import com.dianping.cat.consumer.heartbeat.model.entity.Detail;
import com.dianping.cat.consumer.heartbeat.model.entity.Disk;
import com.dianping.cat.consumer.heartbeat.model.entity.Extension;
import com.dianping.cat.consumer.heartbeat.model.entity.HeartbeatReport;
import com.dianping.cat.consumer.heartbeat.model.entity.Machine;
import com.dianping.cat.consumer.heartbeat.model.entity.Period;




public abstract class BaseVisitor
  implements IVisitor
{
  public void visitDetail(Detail detail) {}

  public void visitDisk(Disk disk) {}

  public void visitExtension(Extension extension) {
/* 22 */     for (Detail detail : extension.getDetails().values()) {
/* 23 */       visitDetail(detail);
    }
  }


  public void visitHeartbeatReport(HeartbeatReport heartbeatReport) {
/* 29 */     for (Machine machine : heartbeatReport.getMachines().values()) {
/* 30 */       visitMachine(machine);
    }
  }


  public void visitMachine(Machine machine) {
/* 36 */     for (Period period : machine.getPeriods()) {
/* 37 */       visitPeriod(period);
    }
  }


  public void visitPeriod(Period period) {
/* 43 */     for (Disk disk : period.getDisks()) {
/* 44 */       visitDisk(disk);
    }

/* 47 */     for (Extension extension : period.getExtensions().values())
/* 48 */       visitExtension(extension); 
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-consumer-3.0.0.jar!/com/dianping/cat/consumer/heartbeat/model/transform/BaseVisitor.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */